<T:ViewBase x:Class="WPFExcelReport.TQSZNFEHL02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFAUFKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFAUFKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFAUFLFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFAUFLFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFAUFPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFAUFPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFSZENNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFSZENNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFLSG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFLSG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFSTARTPUNKT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFSTARTPUNKT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFBRTVON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFBRTVON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFBRTBIS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFBRTBIS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFLAUFNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFLAUFNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSFAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNFEHL.QSFAENZL}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQSZNFEHL,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQSZNFEHL}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQSZNFEHL, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="QSFMANDANT"
                                    Binding="{Binding Path=QSFMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAUFKRS"
                                    Binding="{Binding Path=QSFAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAUFLFD"
                                    Binding="{Binding Path=QSFAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAUFPOS"
                                    Binding="{Binding Path=QSFAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSZENNR"
                                    Binding="{Binding Path=QSFSZENNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSZENNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFLSG"
                                    Binding="{Binding Path=QSFLSG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFLSG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSTARTPUNKT"
                                    Binding="{Binding Path=QSFSTARTPUNKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSTARTPUNKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFBRTVON"
                                    Binding="{Binding Path=QSFBRTVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFBRTVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFBRTBIS"
                                    Binding="{Binding Path=QSFBRTBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFBRTBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFLAUFNR"
                                    Binding="{Binding Path=QSFLAUFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFLAUFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAENZL"
                                    Binding="{Binding Path=QSFAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAENB"
                                    Binding="{Binding Path=QSFAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFAEND"
                                    Binding="{Binding Path=QSFAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFNEUB"
                                    Binding="{Binding Path=QSFNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFNEUD"
                                    Binding="{Binding Path=QSFNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSTKID"
                                    Binding="{Binding Path=QSFSTKID, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSTKID}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFKATALOG"
                                    Binding="{Binding Path=QSFFKATALOG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFKATALOG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFSCHL"
                                    Binding="{Binding Path=QSFFSCHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFSCHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFEHLERSTART"
                                    Binding="{Binding Path=QSFEHLERSTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFEHLERSTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFEHLERENDE"
                                    Binding="{Binding Path=QSFEHLERENDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFEHLERENDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFEHLERBRTV"
                                    Binding="{Binding Path=QSFFEHLERBRTV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFEHLERBRTV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFEHLERBRTB"
                                    Binding="{Binding Path=QSFFEHLERBRTB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFEHLERBRTB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSZNSTART"
                                    Binding="{Binding Path=QSFSZNSTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSZNSTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSZNENDE"
                                    Binding="{Binding Path=QSFSZNENDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSZNENDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFBEZ"
                                    Binding="{Binding Path=QSFBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFART"
                                    Binding="{Binding Path=QSFFART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFVGUET"
                                    Binding="{Binding Path=QSFVGUET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFVGUET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFNETTO"
                                    Binding="{Binding Path=QSFNETTO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFNETTO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFMSCHNITT"
                                    Binding="{Binding Path=QSFMSCHNITT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFMSCHNITT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFDOMFKT"
                                    Binding="{Binding Path=QSFDOMFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFDOMFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFNAHT"
                                    Binding="{Binding Path=QSFNAHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFNAHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFTXTFEHL"
                                    Binding="{Binding Path=QSFTXTFEHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFTXTFEHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFREPARIERT"
                                    Binding="{Binding Path=QSFREPARIERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFREPARIERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFKSTKRS"
                                    Binding="{Binding Path=QSFKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFKST"
                                    Binding="{Binding Path=QSFKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFSHADING"
                                    Binding="{Binding Path=QSFSHADING, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFSHADING}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFANZPKTFEHL"
                                    Binding="{Binding Path=QSFANZPKTFEHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFANZPKTFEHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFANZLNGFEHL"
                                    Binding="{Binding Path=QSFANZLNGFEHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFANZLNGFEHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFANZNAEHTE"
                                    Binding="{Binding Path=QSFANZNAEHTE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFANZNAEHTE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFANZFEHLPKT"
                                    Binding="{Binding Path=QSFANZFEHLPKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFANZFEHLPKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFPFVERGUET"
                                    Binding="{Binding Path=QSFPFVERGUET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFPFVERGUET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFLFVERGUET"
                                    Binding="{Binding Path=QSFLFVERGUET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFLFVERGUET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFVERGUETUNG"
                                    Binding="{Binding Path=QSFVERGUETUNG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFVERGUETUNG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFREPKOST"
                                    Binding="{Binding Path=QSFREPKOST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFREPKOST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSFFILLER"
                                    Binding="{Binding Path=QSFFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSFFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
